/**
 * api文件
 * @Author: yd_renyuanyu
 * @Date: 2021-11-12 10:48:10
 * @Version: 1.0.0
 */
import request from '@/lib/request';

/* ********** Draft ********** */
/**
 * 添加草稿
 * @tips Draft
 * @tags [Draft]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Chat.Drafts.DraftCreateDto]
  */
export function api_POST_Draft (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Draft',
    method: 'post',
    data: aDataBody
  });
}
/**
 * 获得草稿列表
 * @tips Draft
 * @tags [Draft]
 * @param { object } aDataQuery 参数 [Api_GET_DraftQO]
  */
export function api_GET_Draft (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Draft',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * 删除草稿
 * @tips Draft
 * @tags [Draft]
 * @param { object } aDataBody 参数
  */
export function api_DELETE_Draft (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Draft',
    method: 'delete',
    data: aDataBody
  });
}
/**
 * 更新草稿
 * @tips Draft
 * @tags [Draft]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Chat.Drafts.DraftUpdateDto]
  */
export function api_PUT_Draft (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Draft',
    method: 'put',
    data: aDataBody
  });
}
/* ********** Message ********** */
/**
 * 获得收到消息列表
 * @tips Message
 * @tags [Message]
 * @param { object } aDataQuery 参数 [Api_GET_MessageGetReceivingMessagesQO]
  */
export function api_GET_MessageGetReceivingMessages (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/GetReceivingMessages',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * 删除消息
 * @tips Message
 * @tags [Message]
 * @param { object } aDataBody 参数
  */
export function api_DELETE_MessageDeleteReceiveingMessage (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/DeleteReceiveingMessage',
    method: 'delete',
    data: aDataBody
  });
}
/**
 * 发送消息
 * @tips Message
 * @tags [Message]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Chat.Messages.SendMessageInput]
  */
export function api_POST_MessageSendMessage (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/SendMessage',
    method: 'post',
    data: aDataBody
  });
}
/**
 * 使消息已读
 * @tips Message
 * @tags [Message]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Chat.Conversations.MarkConversationAsReadInput]
  */
export function api_POST_MessageMarkMessageAsRead (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/MarkMessageAsRead',
    method: 'post',
    data: aDataBody
  });
}
/**
 * 获得未读消息总数
 * @tips Message
 * @tags [Message]
  */
export function api_GET_MessageGetUnReadMessagesTotal () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/GetUnReadMessagesTotal',
    method: 'get'
  });
}
/**
 * 获得发出的消息列表
 * @tips Message
 * @tags [Message]
 * @param { object } aDataQuery 参数 [Api_GET_MessageGetSendingMessagesQO]
  */
export function api_GET_MessageGetSendingMessages (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/GetSendingMessages',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * 删除已发出的消息
 * @tips Message
 * @tags [Message]
 * @param { object } aDataBody 参数
  */
export function api_DELETE_MessageDeleteSendingMessage (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/DeleteSendingMessage',
    method: 'delete',
    data: aDataBody
  });
}
/**
 * 根据内容获得收到的消息
 * @tips Message
 * @tags [Message]
 * @param { object } aDataQuery 参数 [Api_GET_MessageGetReceiveMessagesByContentQO]
  */
export function api_GET_MessageGetReceiveMessagesByContent (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/chat/Message/GetReceiveMessagesByContent',
    method: 'get',
    params: aDataQuery
  });
}
